package com.cscp.javastudy.basic.annotation;

import java.lang.annotation.*;


public class AnnocationDemo {

    public static void main(String[] args) {

        testDeprecated();

    }

    @Deprecated
    public static void testDeprecated(){
        System.out.println("This method is deprecated");
    }

    @SuppressWarnings("all")
    public void testSuppressWarning(){
        System.out.println("This is suppresswarnings");
    }

    @MyAnnotation
    public void testMyAnnotation(){

    }

}

@Target(value = {ElementType.METHOD, ElementType.TYPE})
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
@Inherited
@interface MyAnnotation {

}
